package org.apache.rocketmq.console.script.dao;

import java.util.List;

import org.apache.rocketmq.console.script.model.RegionInfo;
import org.springframework.data.repository.CrudRepository;

public interface RegionInfoDao extends CrudRepository<RegionInfo, Integer> {
	List<RegionInfo> findAll();

	@SuppressWarnings("unchecked")
	RegionInfo save(RegionInfo entity);

	RegionInfo findOneByCode(String code);

	RegionInfo findOneById(String id);

}
